intialize random number generator state upon program start, to enable
authorTim Janik <timj@imendio.com>
Thu, 14 Sep 2006 10:31:40 +0000 (10:31 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 14 Sep 2006 10:31:40 +0000 (10:31 +0000)
Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>

        * tests/testrichtext.c (main): intialize random number generator state
        upon program start, to enable truely random testing.

ChangeLog
tests/testrichtext.c

index 3d05c276ea853e1c094a0f93e15accdd0a9c17ec..447f17e9c8528b5b0d66ff51b15bb77b29db2971 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>
+
+       * tests/testrichtext.c (main): intialize random number generator state
+       upon program start, to enable truely random testing.
+
 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
 
        * gdk/directfb/gdkcolor-directfb.c small clean ups include order
index 2a64cf7b932998f1cffd0d8fbdfe7faec7e68328..c8663049da4dd65cc21328eac1bb9a77a8bc3121 100644 (file)
@@ -143,6 +143,10 @@ main (gint   argc,
 
   gtk_init (&argc, &argv);
 
+  /* initialize random numbers, disable this for deterministic testing */
+  if (1)        
+    quick_rand32_accu = g_random_int();
+
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_widget_set_size_request (window, 400, 300);